<?php // @version $Id: default.php 11917 2009-05-29 19:37:05Z ian $
defined('_JEXEC') or die('Restricted access');
$cparams = JComponentHelper::getParams ('com_media');
?>

<?php if ($this->params->get('show_page_title',1) && $this->params->get('page_title') != $this->contact->name) : ?>
<h1 class="componentheading<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
	<?php //echo $this->escape($this->params->get('page_title')); ?>
</h1>
<?php endif; ?>

<?php
$layout = $_GET['layout']?$_GET['layout']:"";
if ( $this->contact->params->get('show_email_form') && ($this->contact->email_to || $this->contact->user_id)&& $layout!="success"){
    echo $this->loadTemplate('form');
}else if($layout=="success"){
    echo $this->loadTemplate('success');
}
?>